package com.gdkm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;


import com.gdkm.dao.PrescriptionDao;
import com.gdkm.po.Prescription;
import com.gdkm.service.PrescriptionService;
@EnableTransactionManagement
@Service
public class PrescriptionServiceImpl implements PrescriptionService {
	@Autowired
    PrescriptionDao dao;
	@Override
	public void save1(String pr_number, String pr_name, String pr_doctor, String pr_method, String pr_type,
			String total_amount, String fees, String re_fess, String charge_time, String options, String symptom,
			String yn_charge) {
		dao.save1(pr_number, pr_name, pr_doctor, pr_method, pr_type, total_amount, fees, re_fess, charge_time, options, symptom, yn_charge);
		// TODO Auto-generated method stub

	}

	@Override
	public List<Prescription> list2(int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list2(y, ge);
	}

	@Override
	public List<Prescription> list3(String pr_number, String pr_name, int y, int ge) {
		// TODO Auto-generated method stub
		return dao.list3(pr_number,pr_name, y, ge);
	}

	@Override
	public void delete1(int id) {
		// TODO Auto-generated method stub
		dao.delete1(id);

	}

	@Override
	public void update(Prescription stu) {
		// TODO Auto-generated method stub
		dao.update(stu);

	}

}
